package com.example.blogsystem.service;

import com.example.blogsystem.constant.Constants;
import com.example.blogsystem.mapper.BlogMapper;
import com.example.blogsystem.model.Blog;
import com.example.blogsystem.utils.BlogStoreUtils;
import com.example.blogsystem.utils.JwtUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

@Service
public interface BlogService {
    public List<Blog> queryAllBlogs();
    public Blog queryBlogById(Integer blogId);
    public void insertBlog(Blog blog);
    public void updateBlog(Blog newBlog);
    public void deleteBlog(Integer blogId);
    public Integer countArticles(Integer id);
}
